* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: blue;
}

a:hover {
  font-weight: 700;
}

i,
em {
  font-style: normal;
}

b,
strong {
  font-weight: 400;
}

ul,
li {
  list-style: none;
}

button {
  cursor: pointer;
}

input,
textarea {
  vertical-align: middle;
  outline: none;
  border: 1px solid #ccc;
}

textarea {
  /* 防止拖拽文本域，大小发生变化 */
  resize: none;
}

.commentBox {
  width: 500px;
  height: 550px;
  margin: 15px auto 0;
  border: 1px solid #ccc;
}

.topical {
  height: 50px;
  text-align: center;
  line-height: 50px;
  font-size: 22px;
  font-weight: 700;
  background-color: skyblue;
}

.textContent {
  width: 498px;
  height: 450px;
  padding: 5px;
  overflow-x: hidden;
  overflow-y: auto;
}

.textContent li {
  position: relative;
  width: 488px;
  border-bottom: 1px solid #ccc;
  padding: 10px 5px;
}

.textContent li:last-child {
  border-bottom: none;
}

.textContent li div.comment {
  width: 400px;
  margin-top: 10px;
}

.textContent li button.del {
  position: absolute;
  top: 12px;
  right: 20px;
  width: 40px;
}

.bottom {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  height: 50px;
  border-top: 1px solid #ccc;
}

.bottom button {
  width: 80px;
  height: 32px;
}

.popup {
  display: none;
  position: fixed;
  top: 140px;
  left: 585px;
  /* 使用transform来居中显示，会影响到后面拖拽限制出界 */
  /* transform: translate(-50%, -50%); */
  z-index: 99;
  width: 350px;
  height: 320px;
  border: 1px solid #999;
  background-color: #fff;
}

.popup .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
  padding: 0 10px;
  background-color: skyblue;
  cursor: move;
}

.popup .header .title {
  font-size: 16px;
}

.popup .header .close {
  width: 20px;
  height: 20px;
  text-align: center;
  line-height: 20px;
  background-color: #fff;
  cursor: pointer;
}

.popup .main {
  height: 220px;
  padding: 15px 10px 0;
}

.popup .main .nickname {
  margin-bottom: 20px;
}

.popup .main .nickname input {
  width: 230px;
  padding-left: 5px;
}

.popup .main .commentContent textarea {
  padding: 5px;
}

.popup .main .commentContent i {
  position: relative;
  top: -65px;
  left: 0;
}

.popup .main i {
  cursor: pointer;
}

.popup .footer {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  height: 60px;
}

.popup .footer button {
  width: 60px;
  height: 25px;
}

.mask {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
}